﻿using System.Collections.Generic;
using Model.Database;
using Model.Sys.Enum;
using SearchModel;

namespace IBll
{
    public partial interface IDataDictionaryHeadBll
    {
        /// <summary>
        /// 条件分页查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="total"></param>
        /// <param name="smDataDictionaryHead"></param>
        /// <returns></returns>
        List<DataDictionaryHead> GetListBySearchPage(int pageIndex, int pageSize, out int total, SMDataDictionaryHead smDataDictionaryHead);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="idArr"></param>
        void ListDelte(string[] idArr);
        /// <summary>
        /// 批量禁用
        /// </summary>
        /// <param name="idArr"></param>
        void ListForbidden(string[] idArr);
        /// <summary>
        /// 批量解禁
        /// </summary>
        /// <param name="idArr"></param>
        void ListNoForbidden(string[] idArr);
        /// <summary>
        /// 获取字典项（从缓存读取）
        /// </summary>
        /// <param name="head"></param>
        /// <returns></returns>
        List<DataDictionaryItem> GetItemList(DataDictionaryHeadEnum head);
        /// <summary>
        /// 获取数据字典（字典头集合（包含字典项））
        /// </summary>
        /// <returns></returns>
        List<DataDictionaryHead> GetDataDictionary();
        /// <summary>
        /// 重置数据字典（重置缓存）
        /// </summary>
        void ResetDataDictionary();
    }
}
